:root {
    --primary: rgb(255, 215, 0);
    --accent: red;
    --secondary: green;
    --tertiary: white;
    --section-bg: rgb(169, 94, 19);
}

header {
    background-color: rgb(255, 215, 0);
}

.current-date-time {
    color: #198754;
}

.scrolling-banner {
    color: var(--accent);
    text-shadow: var(--tertiary) 0px 0px 5px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.scrolling-banner span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-banner 60s linear infinite;
}

@keyframes scroll-banner {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

body {
    background: black;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section,
.card,
.card-body {
    background: var(--section-bg) !important;
    color: var(--primary);
}

.navbar {
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    margin-bottom: 1rem;
}

.navbar-brand {
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--accent);
    text-shadow: var(--tertiary) 0px 0px 5px;
}

.navbar-brand img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--secondary);
    margin-right: 10px;
}

.navbar-toggler {
    margin-top: 15px;
    border: none;
    color: var(--secondary);
}

.nav-link {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent);
}

.dropdown-item {
    color: var(--tertiary);
    font-weight: 500;
    text-decoration: none;
}

.dropdown-menu {
    background: var(--accent);
    border-radius: 0.3rem;
    padding: 0.5rem 1rem;
}

.mediaSosial,
.additional-info {
    background: var(--accent);
    color: var(--tertiary);
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    justify-content: center;
}

.mediaSosial a,
.additional-info a {
    color: var(--tertiary);
    text-decoration: none;
    font-weight: 500;
    margin-right: 0.5rem;
}

.mediaSosial a:hover,
.additional-info a:hover {
    color: var(--secondary);
    text-shadow: var(--primary) 0px 0px 5px;
}

.section-title {
    margin: 2rem 0 1rem 0;
    font-weight: bold;
    text-align: center;
    color: var(--primary);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tiktok-custom-width {
    max-width: 605px;
    min-width: 325px;
}

.ads-image {
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.ads-image:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.ads-link {
    display: block;
    text-align: center;
}

/* Styling Section */
#welcome {
    background: linear-gradient(to right, #ffcc00, #ff9900);
    padding: 50px 20px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Animasi Logo */
.logo-animation {
    transition: transform 0.4s ease-in-out;
}

.logo-animation:hover {
    transform: scale(1.1);
}

/* Styling Header */
.section-title {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
}

.highlight {
    color: rgb(255, 215, 0);
}

/* Styling Tombol */
.btn-custom {
    background: rgb(255, 215, 0);
    color: green;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.btn-custom:hover {
    background: red;
    color: white;
    transform: scale(1.05);
}

/* Section Donasi */
.donation-section {
    background: linear-gradient(to right, rgb(255, 215, 0), green);
    padding: 50px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Styling Card Donasi */
.donation-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
}

/* Styling Tombol Donasi */
.btn-donate {
    background: rgb(255, 215, 0);
    color: green;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.btn-donate:hover {
    background: red;
    color: white;
    transform: scale(1.05);
}

/* Modal Donasi */
.modal-text {
    font-size: 18px;
    font-weight: bold;
}

.donation-image {
    max-width: 200px;
    transition: transform 0.3s ease-in-out;
}

.donation-image:hover {
    transform: scale(1.1);
}

/* Styling Section */
.liturgy-card {
    background: linear-gradient(to right, #f8e3c8, #e2b878);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
    color: #4a2e00;
}

/* Teks Header */
.section-title {
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Frame Kalender */
.liturgy-frame-container {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Iframe */
.liturgical-calendar-iframe {
    width: 100%;
    max-width: 400px;
    height: 450px;
    border-radius: 8px;
}

/* Alert Bacaan */
.alert {
    background: #e8f0ff;
    color: #004085;
    border-left: 5px solid #1e3a8a;
}

.alert a {
    color: #004085;
    font-weight: bold;
    text-decoration: none;
}

.alert a:hover {
    text-decoration: underline;
}

.icon.mx-2 {
    color: var(--primary);
    margin-left: 0.5rem;
    text-decoration: none;
}

.icon.mx-2:hover {
    color: var(--secondary);
    text-shadow: var(--tertiary) 0px 0px 5px;
}

.flagcounter-link {
    max-width: 100%;
    overflow-x: auto;
}

.flagcounter-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 15px var(--secondary);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.float {
    text-decoration: none;
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 16px;
    right: 24px;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    transition: background 0.2s;
}

.float:hover {
    background: var(--secondary);
    color: var(--tertiary);
    box-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 15px var(--secondary);
    text-decoration: none;
    transform: scale(1.1);
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 15px var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 16px;
    right: 24px;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    text-align: center;
}

.my-float {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary);
    text-shadow: var(--tertiary) 0px 0px 5px;
    transition: color 0.2s;
    text-decoration: none;
    display: flex;
    width: 100%;
    height: 100%;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.back-to-home {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1002;
    display: none;
    text-decoration: none;
    background-color: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
}

.back-to-top {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 2rem;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s;
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--tertiary);
    box-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 15px var(--secondary);
    text-decoration: none;
}

.footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 1.5rem 0 1rem 0;
    text-align: center;
    margin-top: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
}

.footer a {
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    display: inline-block;
    margin: 0 0.5rem;
}

.footer a:hover {
    color: var(--secondary);
    text-shadow: var(--tertiary) 0px 0px 5px;
    transition: color 0.2s;
    transform: scale(1.1);
}

.social-icons {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: var(--primary);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1000;
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    color: var(--tertiary);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 15px var(--secondary);
    text-align: center;
    line-height: 40px;
    border: 2px solid var(--secondary);
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.social-icon:hover {
    color: var(--accent);
    text-shadow: var(--secondary) 0px 0px 5px;
    transform: scale(1.1);
    transition: transform 0.2s;
    border-radius: 50%;
    padding: 0.2rem;
    background: var(--primary);
    box-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 15px var(--secondary);
    display: inline-block;
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border: 2px solid var(--secondary);
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* For modal backgrounds */
.modal-content {
    background: #222 !important;
    color: var(--primary) !important;
    padding: 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    max-width: 90% !important;
    margin: auto !important;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 80vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1001;
    width: 100%;
    max-width: 600px;
    height: 100%;
    max-height: 80vh;
    box-sizing: border-box;
}

@media (min-width: 250px) {

    .calendar-modern table th,
    .calendar-modern table td {
        font-size: 0.95em;
        padding: 0.35em 0.2em;
        text-align: center;
        border: 1px solid var(--secondary);
        border-radius: 0.2rem;
        background: var(--primary);
        color: var(--secondary);
        transition: background 0.3s ease, color 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    #calendar-month-picker {
        flex-direction: column;
        gap: 0.4em;
        font-size: 0.9em;
        padding: 0.5em;
        margin: 0.5em 0;
        border-radius: 0.3rem;
    }

    .mediaSosial,
    .additional-info {
        flex-direction: column;
        gap: 0.2rem;
        font-size: 0.98rem;
        padding: 0.5rem;
        margin: 0.5rem 0;
        border-radius: 0.3rem;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--accent);
        color: var(--tertiary);
        text-align: center;
        font-weight: 500;
        letter-spacing: 0.5px;
        line-height: 1.5;
        transition: background 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 100%;
        cursor: pointer;
        text-decoration: none;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .footer {
        font-size: 0.98rem;
        padding: 1rem 0;
        margin-top: 1rem;
        text-align: center;
        color: var(--secondary);
        background: var(--primary);
        border-radius: 0.3rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1000;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        line-height: 1.5;
        border-radius: 0.3rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 10px;
        text-align: center;
        background: var(--primary);
        color: var(--secondary);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1000;
        gap: 0.5rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 0.3rem;
        font-size: 1.2rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        line-height: 1.5;
    }

    .navbar {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: var(--primary);
        border-radius: 0.3rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1000;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        flex-wrap: wrap;
    }

    .navbar-brand {
        font-size: 1.2rem;
        margin-right: 10px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        cursor: pointer;
        text-decoration: none;
        color: var(--secondary);
        font-weight: bold;
        font-size: 1.2rem;
        transition: color 0.3s ease;
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .navbar-brand img {
        height: 30px;
        width: 30px;
        margin-right: 5px;
        margin-bottom: 5px;
    }

    .navbar-toggler {
        margin-top: 10px;
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        background: var(--secondary);
        color: var(--tertiary);
        border-radius: 0.3rem;
        border: none;
        outline: none;
        box-shadow: none;
        cursor: pointer;
        transition: background 0.3s ease, color 0.3s ease;
        width: auto;
        text-align: center;
        display: inline-block;
        margin-left: auto;
        margin-right: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        transition: font-size 0.3s ease, color 0.3s ease;
        text-shadow: none;
        text-decoration: none;
        color: var(--secondary);
        font-weight: 500;
        display: inline-block;
        margin: 0 0.5rem;
        border-radius: 0.3rem;
        background: transparent;
        border: none;
        outline: none;
        width: auto;
        text-align: center;
        box-shadow: none;
    }

    .nav-link:hover {
        font-size: 1rem;
        color: var(--accent);
        text-shadow: var(--tertiary) 0px 0px 5px;
    }

    .dropdown-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        background: var(--accent);
        color: var(--tertiary);
        transition: background 0.3s ease;
        cursor: pointer;
        border: none;
        outline: none;
        width: 100%;
        text-align: left;
    }

    .dropdown-menu {
        padding: 0.5rem;
        font-size: 0.9rem;
        border-radius: 0.3rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        background: var(--accent);
        color: var(--tertiary);
        width: 100%;
        max-width: 100%;
    }

    .mediaSosial,
    .additional-info {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        margin: 1rem 0;
        padding: 0.5rem;
        border-radius: 0.3rem;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        background: var(--accent);
        color: var(--tertiary);
        text-align: center;
        font-weight: 500;
        letter-spacing: 0.5px;
        line-height: 1.5;
        transition: background 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 100%;
    }

    .mediaSosial a,
    .additional-info a {
        margin: 0.2rem 0;
        font-size: 0.9rem;
        color: var(--secondary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 0.5rem 1rem;
        border-radius: 5px;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 1rem 0;
        text-align: center;
        padding: 0 1rem;
        border-bottom: 2px solid var(--accent);
        display: inline-block;
        font-weight: 500;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .video-container {
        padding-bottom: 75%;
        margin-bottom: 1rem;
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background: #000;
        display: block;
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .donation-section {
        padding: 30px 15px;
        margin-bottom: 20px;
        border-radius: 10px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        color: #fff;
        background: #007bff;
        text-align: center;
        font-size: 1.2rem;
        margin: 20px auto;
        max-width: 90%;
        padding: 20px;
    }

    .donation-card {
        padding: 20px;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin: 0 auto;
        max-width: 90%;
        text-align: center;
        color: #333;
        padding: 15px;
    }

    .donation-image {
        max-width: 150px;
        margin: 0 auto;
        display: block;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .liturgical-calendar-iframe {
        height: 350px;
        max-width: 100%;
        border: none;
        margin-top: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        overflow: hidden;
        padding: 15px;
        display: block;
    }
}